<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* div{
            width: 200px;
            height: 200px;
            background-color: pink;
            margin: 100px auto;
        }
       
        div{
            background: linear-gradient(45deg, pink, red);
        }
        div{
            background: linear-gradient(to right, pink, red);
        }
        div{
            background: linear-gradient(45deg, pink 75%, red);

        } */

        .box{
            position: relative;
            width: 300px;
            height: 212px;
        }
        .box img{
            width: 300px;

        }

        .box .title{
            position: absolute;
            bottom: 0;
            left: 15px;
            bottom: 20px;
            z-index: 2;
            width: 260px;
            font-size: 20px;
            font-weight: 700;
            color: #fff;

        }
        .mask{
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background:linear-gradient(transparent, rgba(0, 0, 0, 0.5));
            opacity: 0;
            transition: all 0.5s;
        }
        .box:hover .mask{
            opacity: 1;

        }

    </style>
</head>
<body>
    <div></div>
    <div class="box">
        <img src="./images/product.jpeg" alt="">
        <div class="title">OceanStor Pacific 海量存储战火2021 Interop金奖</div>
        <div class="mask"></div>
    </div>
</body>
</html>